package com.cyzy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyzy.dto.StudentDto;
import com.cyzy.dto.TeacherCouserDto;
import com.cyzy.dto.TeacherDto;
import com.cyzy.dto.parentDto;
import com.cyzy.mapper.CourseMapper;
import com.cyzy.pojo.CourseParent;
import com.cyzy.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cuncun
 * @create 2025-06-19 下午7:30
 */
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, TeacherCouserDto> implements CourseService {

    @Autowired
    private CourseMapper courseMapper;

    @Override
    public List<TeacherCouserDto> teacherDate(String date, Integer teacherId) {

        return courseMapper.teacherDate(date,teacherId);
    }

    @Override
    public List<StudentDto> studentName(Integer parentId) {
        return courseMapper.studentName(parentId);
    }

    @Override
    public List<TeacherCouserDto> studentCla(String userName) {
        return courseMapper.studentCla(userName);
    }

    @Override
    public parentDto parentUrl(Integer parentId) {

        return courseMapper.parentUrl(parentId);
    }

    @Override
    public List<TeacherCouserDto> courseInformation(Integer claId, String startDate, String endDate) {
        return courseMapper.courseInformation(claId,startDate,endDate);
    }

    @Override
    public List<TeacherCouserDto> dateSelectCourse(Integer claId, String date) {
        return  courseMapper.dateSelectCourse(claId,date);
    }

    @Override
    public TeacherDto teacherUrl(Integer teacherId) {
        return courseMapper.teacherUrl(teacherId);
    }
}
